<?php
namespace app\home\controller\team;
use app\home\controller\Base;

class Handle extends Base
{

	private $params;

	public function __construct(){
		parent::__construct();
		// token验证
		if(false == Base::checkToken()){
			$this->error('token error!');
		}
		// 参数去token
		$params = $this -> request -> post();
		unset($params['token']);
		$this->params = $params;
	}
	
	/**
	 * 申请报单中心
	 * @return [type] [description]
	 */
	public function apply(){

		$data = [];
		$data['uid'] = UID;
		$data['title'] = '申请成为报单中心';
		$model = model('member_apply');
		if(false===$model->saveOneData($data,UID)){
			$this->error($model->getError());
		}
		$this->success('提交成功');

	}

}